package com.ebo.rongcloud.receiver;

import android.content.Context;
import android.content.Intent;

import com.ebo.rongcloud.activitys.ConversationActivity;

import io.rong.push.notification.PushMessageReceiver;
import io.rong.push.notification.PushNotificationMessage;

/**
 * Created by admin on 2017/4/13.
 */

public class RongReceiver  extends PushMessageReceiver {
    @Override
    public boolean onNotificationMessageArrived(Context context, PushNotificationMessage message) {
        Intent intent = new Intent();
        intent.setClass(context, ConversationActivity.class);
        context.startActivity(intent);
        return false;
    }

    @Override
    public boolean onNotificationMessageClicked(Context context, PushNotificationMessage message) {
        return false;
    }
}